package com.guigu.pd.base.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.base.dao.TruckLicenseDao;
import com.guigu.pd.base.entity.TruckLicenseEntity;
import com.guigu.pd.base.service.TruckLicenseService;


@Service("truckLicenseService")
public class TruckLicenseServiceImpl extends ServiceImpl<TruckLicenseDao, TruckLicenseEntity> implements TruckLicenseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TruckLicenseEntity> page = this.page(
                new Query<TruckLicenseEntity>().getPage(params),
                new QueryWrapper<TruckLicenseEntity>()
        );

        return new PageUtils(page);
    }

}